package com.nlscan.qdkit.ui.publico.config;

/**
 * 应用全局常量
 * Created by QING on 2018/3/12.
 */

public class PublicoConst {

    /**************************************
     * 全局 通用 BEGIN
     **************************************/
    public static final String INTENT = "intent";
    public static final String RESULT = "result";
    public static final String TITLE = "title";
    public static final String TYPE = "type";
    public static final String INDEX = "index";
    public static final String EMAIL = "email";
    public static final String TIMESTAMP = "timestamp";
    public static final String MODE = "mode";


    public static final String USER = "user";
    public static final String USER_NAME = "userName";
    public static final String USER_PWD = "userPassword";

    public static final String CHOICE_MODE = "choiceMode"; // 单选或多选
    public static final String SELECT_DEVS = "selectDevs";
    public static final String SELECT_CHANNELS = "selectChannels";

    public static final String APP_TAG = "qualvision";

    public static final String EDIT_MODE = "editMode";
    public static final String ACCOUNT = "account";

    public static final String SELECT_TYPE = "selectType";
    public static final String POSITION = "position";


    /**************************************
     * 全局 通用 END
     **************************************/

    /**
     * MODULE_PREVIEW
     */
    public static final String IS_FROM_PREVIEW = "isFromPreview";

    /**
     * MODULE_PLAYBACK
     */
    public static final String IS_PIC_MODE = "isPicMode";
    public static final String FILE_TYPE = "fileType";
    public static final String SEARCH_PARAM = "searchParam";
    public static final String START_TIME = "startTime";
    public static final String END_TIME = "endTime";
    public static final String SEARCH_FILE_DAYS_PARAM = "searchFileDaysParam";
    public static final String SEARCH_FILE_DAYS_PARAM_1 = "searchFileDaysParam1";
    public static final String SEARCH_DATE = "searchDate";
    public static final String WINDOW_POS = "windowPos";
    public static final String PIC_INDEX = "picIndex";
    public static final String SEARCH_STREAM = "searchStream";

    /**
     * MODULE_DEVICE
     */
    public static final String IS_FROM_ALARM = "isFromAlarm";
    public static final String IS_FROM_PLAYBACK = "isFromPlayback";
    public static final String DEVICE_LIST = "devicelist";  // TODO: 2019/7/14 r
    public static final String SELECTED_DEVICES = "selectedDevices";
    public static final String CHECK_ZERO_CHANNEL_ABILITY = "checkZeroChannelAbility";

    public static final String DEV_CH_NO = "DevChNo";
    public static final String DEV_STREAM_NO = "DevStreamNo";
    public static final String DEVICE = "device";
    public static final String DEVICE_CARD = "deviceCard";
    public static final String DEV_UID = "dev_uId";
    public static final String DEVICE_NAME_MODIFY = "deviceNameModify";
    public static final String DEVICE_BIND_QR_CODE_INFO = "deviceBindQrCodeInfo";
    public static final String CHANNEL = "channel";
    public static final String CHANNEL_CARD = "channel_card";
    public static final String LAN_ONLINE_DEVICE = "lan_online_device";
    public static final String DEVICE_SHARE_INFO = "device_share_info";
    public static final String SUPPORT_QR_TYPE = "support_qr_type";
    public static final String QR_TYPE = "qr_type";
    public static final String IMPORT_DEV_LIST = "import_dev_list";
    public static final String IMPORT_DEV_RESULT = "import_dev_result";
    public static final String IS_ABLE_IMPORT = "is_able_import";

    public static final String INTENT_DEVICE_CHANNEL_NO = "intent_device_channel_num";
    public static final String INTENT_DEVICE_CHANNEL_NUM = "intent_device_channel_num";
    public static final String DEVICE_ID = "intent_device_uid";

    public static final String DEVICE_ADD_INFO = "device_add_info";
    public static final String DEVICE_ADD_TYPE_IP = "device_add_type_ip";
    public static final String DEVICE_TYPE = "device_type";
    public static final String IS_VSU_DEVICE = "isVsuDevice";

    /**
     * Module Share
     */

    public static final String INTENT_URL = "intent_url";
    public static final String WEEKDAYS = "weekdays";
    public static final String PERIODS = "periods";
    public static final String PERMISSION = "permission";
    public static final String IS_MANAGER = "isManager";
    public static final String IS_INVITE_REGISTER = "isInviteRegister";
    public static final String SHARE_CONFIG_PARAM = "shareConfigParam";


    public static final String SHARE_MODE = "shareMode";
    public static final String IS_SET_DEFAULT_SHARE_CONFIG = "ISDSC";


    /**
     * MODULE_FACE
     */

    public static final String FACE_DATABASE = "faceDatabase";
    public static final String FACE_SEARCH_STRATEGY = "faceSearchStrategy";
    public static final String FACE_SELECT_POSITION = "faceSelectPosition";


    /**
     * MODULE_ALARM
     */

    public static final String ALARM_TIME = "alarmTime";
    public static final String ALARM_MSG_FILTER = "alarmMsgFilter";

    /**
     * MODULE_FILE
     */
    public static final String FILE_PATH = "filePath";
    public static final String FILE_NAME = "fileName";
    public static final String IMAGE_HEIGHT = "imageHeight";

    /**
     * MODULE_FACE
     */

    public static final String FACE_PHOTO_PATH = "facePhotoPath";
    public static final String FACE_INFO = "faceInfo";


    /**
     * Module PUSH
     */

    public static final String PUSH_CHANNEL_ID = "push_channel_id";


    /**
     * 兼容IOT新增key BEGIN
     */

    public static final String INTENT_DEVICE_UID = "intent_device_uid";


    /**
     * 兼容IOT新增key END
     */


    /**************************************
     * 华师SDK相关 BEGIN
     **************************************/

    public static final String HS_TDKS_VENDOR_FLAG = "api.qvcloud.net";    // VSU中性服务器标识

    public static final String HS_OEM_ID_NEUTRAL = "C0000"; // 中性客户代码，C0000为中性版本


    /**************************************
     * 华师SDK相关 END
     **************************************/


    /**************************************
     * 用户相关 BEGIN
     **************************************/

    public static final String FREE_LOGIN_USER_NAME = "nologinuser";
    public static final String FREE_LOGIN_USER_PWD = "nologinuser";

    public static final String LOGIN_TYPE_PHONE = "phone";
    public static final String LOGIN_TYPE_USERNAME = "userName";


    /**************************************
     * 用户相关 END
     **************************************/


    /**************************************
     * 设备、预览、回放 BEGIN
     **************************************/

    public static final String DEVICE_ADD_TYPE = "intent_device_add_type";
    public static final int DEVICE_ADD_TYPE_NEW = 0;        // 默认为添加到服务器
    public static final int DEVICE_ADD_TYPE_ONLINE = 1;
    public static final int DEVICE_ADD_CONFIG_WIFI = 2;
    public static final int DEVICE_ADD_TYPE_STANDALONE = 3; // IOT设备单机模式添加（AP热点）
    public static final int DEVICE_ADD_TYPE_LAN = 4; // 局域网ip方式添加（连路由器或设备热点）（当前适配iot设备）

    public static final String INTENT_SEARCH_MODE = "intent_search_mode";
    public static final int SEARCH_MODE_ADD_DEVICE = 0;    //设备添加
    public static final int SEARCH_MODE_PREVIEW = 1;       //局域网预览

    public static final String INTENT_DEVICE_CONNECT_MODE = "intent_device_connect_mode";
    public static final int DEVICE_CONNECT_MODE_NORMAL = 0;    //普通预览模式
    public static final int DEVICE_CONNECT_MODE_LAN = 1;       //局域网预览模式

    public static final String INTENT_DEVICE_WIFI_SET_TYPE = "intent_wifi_set_type";
    public static final int INTENT_DEVICE_WIFI_SET_TYPE_NEW = 1;
    public static final int INTENT_DEVICE_WIFI_SET_TYPE_MODIFY = 0;

    public static final String INTENT_IS_MANUAL_ADD = "intent_is_manual_add";
    public static final String INTENT_IS_MANUAL_IP_ADD = "intent_is_manual_ip_add";     // 手动输入ip添加

    /**************************************
     * 设备、预览、回放 END
     **************************************/


    /**************************************
     * 路径名 BEGIN
     **************************************/

    public static final String PATH_LOAD_MESS = "/loadMessDir/"; // 本地缓存数据路径

    /**************************************
     * 路径名 END
     **************************************/


    /**************************************
     * assets目录下的资源文件 BEGIN
     **************************************/

    public static final String ASSETS_PRIVACY_POLICY = "PrivacyPolicy";
    public static final String ASSETS_PRIVACY_POLICY_NEUTRAL = "PrivacyPolicy_neutral";
    public static final String ASSETS_SERVICE_AGREEMENT = "ServiceAgreement";

    /**************************************
     * assets目录下的资源文件 END
     **************************************/

    public static final int ALARM_TYPE_CROSS = 10;    //越界侦测
    public static final int ALARM_TYPE_AREA = 11;     //区域入侵侦测
    public static final int ALARM_TYPE_MOTION = 2;    //移动侦测
    public static final int ALARM_TYPE_BLIND = 3;     //视频遮挡
    public static final int ALARM_TYPE_LOSS = 4;      //视频丢失
    public static final int ALARM_TYPE_PROBE = 5;     //报警输入

    public static final int ALARM_TYPE_IN = 12;     //区域进入
    public static final int ALARM_TYPE_OUT = 13;     //区域离开
    public static final int ALARM_TYPE_FORGET = 14;     //物品遗留
    public static final int ALARM_TYPE_PICKUP = 15;     //物品拾取
    public static final int ALARM_TYPE_MOVE = 16;     //物品拾取
    public static final int ALARM_TYPE_FACE = 17;     //物品拾取
    public static final int ALARM_TYPE_LOITERING = 19;     //徘徊侦测报警
    public static final int ALARM_TYPE_PARKING = 20;     //停车侦测报警
    public static final int ALARM_TYPE_GATHERING = 21;     //人员聚集报警

    /**
     * SmartLight状态
     * todo 老代码兼容问题，SmartLightMode
     */
    public static final int SMART_LIGHT_OFF = 0;                // 关
    public static final int SMART_LIGHT_MANUAL_OPEN = 1;        // 手动开
    public static final int SMART_LIGHT_AUTO = 2;               // 自动

    /**
     * 兼容iot新增 BEGIN
     */

    public static final int OPEN = 1;
    public static final int CLOSE = 0;

    public static final String ON = "on";
    public static final String OFF = "off";

    /**
     * 兼容iot新增 END
     */

    public static final String LIST = "intent_list";

    public static final String STATUS_DEFAULT = "Default";

    public static final String INVALID_IP = "0.0.0.0";

    public static final int INTENT_RET_SUCCESS = 123;

    public static final String USER_ID_NOT_LOGIN = "-1"; //未登录
    public static final String USER_ID_NO_LOGIN = "-2";  //免登录

    public static final String FRAGMENT_TAG_NULL = "tag_null";  //未设置fragment的tag

    public static final String INTENT_WEEK_SELECTED = "intent_week_selected";
    /*** 所有通道类别 **/
    public static final int CATEGORY_ALL_CHANNEL = 0;
    /*** 收藏通道类别 **/
    public static final int CATEGORY_COLLECT_CHANNEL = 1;

    public static final int RESULT_CODE_MULTIPLE_CHOICE = 200;
    public static final int RESULT_CODE_SINGLE_CHOICE = 201;
}
